home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Clock / Sources / Dialog.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.1 KB  |  83 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Dialog.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                Mary Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef DIALOG_H
  13. #define DIALOG_H
  14.  
  15. // ----- Framework Includes -----
  16.  
  17. #ifndef FWFRAME_H
  18. #include "FWFrame.h"
  19. #endif
  20.  
  21. #ifndef FWEVENT_H
  22. #include "FWEvent.h"
  23. #endif
  24.  
  25. #ifndef FWDIALOG_H
  26. #include "FWDialog.h"
  27. #endif
  28.  
  29. //==============================================================================
  30. // Forward Declarations
  31. //==============================================================================
  32.  
  33. class CClockPart;
  34. class FW_CEditView;
  35.  
  36. //==============================================================================
  37. // class CClockSettingsDialogFrame
  38. //==============================================================================
  39.  
  40. class CClockSettingsDialogFrame : public FW_CDialogFrame
  41. {
  42.   public:
  43.     FW_DECLARE_AUTO(CClockSettingsDialogFrame)
  44.  
  45.     CClockSettingsDialogFrame(Environment* ev, 
  46.                 ODFrame* odFrame, 
  47.                 FW_CPresentation* presentation, 
  48.                 CClockPart* part);
  49.  
  50.     virtual ~CClockSettingsDialogFrame();
  51.  
  52.   public:    
  53.     // ---- FW_CDialogFrame API
  54.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  55.  
  56.     // ----- FW_CView & FW_CFrame API
  57.     virtual void         PostCreateViewFromStream(Environment* ev);
  58.  
  59.     // ----- Private data
  60.   private:
  61.       CClockPart*         fClockPart;
  62.     FW_CEditView*        fNumberView;
  63.     FW_CEditView*        fStringView;
  64. };
  65.  
  66. //========================================================================================
  67. //    class CNumberFilter
  68. //========================================================================================
  69.  
  70. class CNumberFilter : public FW_MEventHandler
  71. {
  72. public:
  73.     FW_DECLARE_CLASS
  74.     FW_DECLARE_AUTO(CNumberFilter)
  75.  
  76.     CNumberFilter(Environment* ev, FW_MEventHandler* parent);
  77.     virtual    ~CNumberFilter();
  78.  
  79.     // ----- FW_MEventHandler API
  80.     virtual FW_Handled     DoCharKey(Environment* ev, const FW_CCharKeyEvent& theCharKeyEvent);
  81. };
  82.  
  83. #endif